﻿@{
    ViewBag.Title = " - 权限选择";
}
@section header{
   <link href="@Url.Content("~/Content/css/Org.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Controls.css")" rel="stylesheet" type="text/css" />
    <style type="text/css">
        #leftTypeList{width:100px; padding:10px 20px;}
         #leftTypeList li{ padding:4px 0px; height:18px; line-height:18px; float:left;width:100px;}
         #leftTypeList li img{ margin-top:1px; float:left;}
        #leftTypeList a,#leftTypeList a:link,#leftTypeList a:visited{ text-decoration:none; color:Black;}
        #leftTypeList a:hover{ color:Red;}
         #leftTypeList li.selected{ background-color:#FFEEAC; border:1px solid #DB9F00;}
    </style>
}
 <div class="fl" style="border: 1px solid #ccc; height:400px; margin-right:10px;">
    <input type="hidden" id="HidTypeName" name="HidTypeName" value="" />
    <ul id="leftTypeList">
     <li class="selected"><img src="../Content/images/bullet_blue.png" /> <a href="javascript:void(0);" onclick="javascript:clickGetData('',0)">全部</a></li>
     @{ int index = 1;}
        @foreach (var item in ViewBag.TypeNames) { 
         <li><img src="../Content/images/bullet_blue.png" /> <a href="javascript:void(0);" onclick="javascript:clickGetData('@item',@index)">@item</a></li>
            index++;
        }
    </ul>
 </div>
  <div class="fl" >
        <div class="tree" id="treeNodesData">
            <img id="initLoadingImg" src="../Scripts/ligerUI/skins/Aqua/images/common/loading.gif" alt="正在加载数据..." />
        <ul class="l-tree"></ul>
        </div>
    </div>
<input type="hidden" value="@ViewBag.RoleId" id="hidRoleId" />

   <p class="divBtn">
            
              <input type="hidden" id="hidHttpRefeParent" name="hidHttpRefeParent" value="grid" />
            <input type="hidden" id="hidHttpPostState" name="hidHttpPostState" value="@ViewBag.PostState" />
            <input type="button" value="确定" id="btnCommit"  class="BtnSubmit" />
            <input type="button" value="@XSTDZ.ERP.Infrastructure.SystemConfig.BtnClose" id="btnFromClose" name="btnFromClose" class="BtnClose" />
 </p>
 <script type="text/javascript" src="@Url.Content("~/Content/js/Permission/PermissionTreeDate.js")"></script>
 <script type="text/javascript" src="@Url.Content("~/Content/js/formBase.js")"></script>